import {createBrowserRouter} from "react-router-dom";
import Layout from "@/pages/Layout/index.jsx";
import Month from "@/pages/Month/index.jsx";
import Year from "@/pages/Year/index.jsx";
import New from "@/pages/New/new.jsx";
import NotFound from "@/pages/NotFound/index.jsx";
import Test from "@/pages/Test/index.jsx";

const router=createBrowserRouter([
    {
        path:'/',
        element:<Layout/>,
        children:[
            {
                index:true,
                path:'month',
                element:<Month/>
            },
            {
                path:'year',
                element:<Year/>
            }

        ]
    },
    {
        path:'new',
        element:<New/>
    },
    {
      path:'test',
      element:<Test/>
    },

    {
        path:"*",
        element:<NotFound/>
    }
])


export default router;